package chai.ning.methods;

import java.io.PrintStream;

public class Mouse
{
  public String name;
  public int age;

  public Mouse()
  {
    System.out.println("Mouse : instance initializer");

    System.out.println("Mouse : constructor");
  }

  public void introduce()
  {
    System.out.println("我叫" + this.name + "，今年" + this.age + "岁");
  }

  public static void main(String[] args)
  {
    Mouse m = new Mouse();
    m.name = "杰瑞";
    m.age = 5;
    m.introduce();

    Mouse o = new Mouse();
    o.name = "舒克";
    o.age = 6;
    o.introduce();

    Mouse u = new Mouse();
    u.name = "贝塔";
    u.age = 7;
    u.introduce();
  }
}